package com.lwx.i18n;

import java.io.UnsupportedEncodingException;
import java.util.Locale;
import java.util.ResourceBundle;

public class I18nMain {

    /**
     * @author liangwenxin
     * @throws UnsupportedEncodingException 
     */
    public static void main(String[] args) throws UnsupportedEncodingException {
        Locale locale = Locale.getDefault();
        ResourceBundle bundle = ResourceBundle.getBundle("com.lwx.i18n.base", Locale.JAPANESE);
        System.out.println(new String(bundle.getString("hello").getBytes("ISO-8859-1"), "UTF-8"));
    }
}
